package top.zy.search.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.zy.common.zymallcommon.vo.PageResult;
import top.zy.search.dto.Goods;
import top.zy.service.zymallgoodsinterface.entity.Brand;
import top.zy.service.zymallgoodsinterface.entity.Category;

import java.util.List;
import java.util.Map;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 9:32 2019/7/5
 */
@Data
@NoArgsConstructor
public class SearchVo extends PageResult<Goods> {

 private List<Category> categories; //分类带选项

 private List<Brand> brands; //品牌带选项

 private List<Map<String,Object>> specs; //规格参数过滤条件 key和带选项

    public SearchVo(Long total, Integer totalPage, List<Goods> items, List<Category> categories, List<Brand> brands, List<Map<String, Object>> specs) {
        super(total, totalPage, items);
        this.categories = categories;
        this.brands = brands;
        this.specs = specs;
    }
}
